home *** CD-ROM | disk | FTP | other *** search
- /* MIDI_CON
- *
- * Little terminal program that reads and writes from the MIDI
- * device. Compile as MIDI_CON.TOS
- *
- * Stephan Baucke @ AC
- */
-
- #include <tos.h>
- void main(void)
- {
- long k;
- int i;
-
- for(;;)
- {
- if (Bconstat(2))
- {
- k = Bconin(2);
- if ((char)k == 0 && (k & 0x00ff0000L) == 0x00610000L)
- break; /* UNDO --> abbrechen */
- Bconout(3, (int)k);
- }
- i = 100;
- while(Bconstat(3) && --i >= 0)
- Bconout(2, (int)Bconin(3));
- }
- }
-